home *** CD-ROM | disk | FTP | other *** search
/ Max Calendar 2002 / Max Calendar 2002.iso / pc / Data / intro.dxr / 00011_DRAG IMAGE VERTICALE.ls < prev    next >
Encoding:
Text File  |  2001-10-17  |  286 b   |  13 lines

  1. on mouseDown
  2.   global gMinZV, gMaxZV
  3.   DeltaV = the mouseV - the locV of sprite 117
  4.   repeat while the stillDown
  5.     cursor(SettaCursore(3))
  6.     V = the mouseV - DeltaV
  7.     V = max(V, gMinZV)
  8.     V = min(V, gMaxZV)
  9.     set the locV of sprite 117 to V
  10.     updateStage()
  11.   end repeat
  12. end
  13.